/*
 * ListOperatorExpression.java
 *
 * Created on March 1, 2007, 10:17 PM
 *
 * (C) R. Alexander Milowski alex@milowski.com
 */

package com.smallx.xpath.parser;

/**
 *
 * @author R. Alexander Milowski
 */
public class SingletonExpression implements Expression {
   
   Operator operator;
   Expression target;
   /** Creates a new instance of ListOperatorExpression */
   public SingletonExpression(Operator op,Expression target) {
      this.operator = op;
      this.target = target;
   }
   
   public Expression getExpression() {
      return target;
   }
   
   public Operator getOperator() {
      return operator;
   }
   
   public String toString() {
      return "("+operator+" "+target+" )";
   }
}
